Skip to content

Use currently selected remote DB when Variant Analysis is run#1838

Merged
norascheuch merged 5 commits intomainfrom
charis-nora/run-mrva-against-selected-db
Dec 7, 2022
Merged

Use currently selected remote DB when Variant Analysis is run#1838
norascheuch merged 5 commits intomainfrom
charis-nora/run-mrva-against-selected-db

Conversation

@norascheuch
Copy link
Copy Markdown
Contributor

When running a MRVA while the new Query Run Experience feature flag is enabled we want to use the new DB panel to inform on which repositories to run the query.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@norascheuch norascheuch force-pushed the charis-nora/run-mrva-against-selected-db branch from cfeb753 to 651ac08 Compare December 5, 2022 15:28
@norascheuch norascheuch marked this pull request as ready for review December 5, 2022 15:28
@norascheuch norascheuch requested review from a team as code owners December 5, 2022 15:28
@norascheuch norascheuch force-pushed the charis-nora/run-mrva-against-selected-db branch from 651ac08 to 728f801 Compare December 6, 2022 08:42
Copy link
Copy Markdown
Contributor

@charisk charisk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Love seeing all the tests too!

Comment thread extensions/ql-vscode/src/remote-queries/repository-selection.ts Outdated
Comment thread extensions/ql-vscode/src/remote-queries/repository-selection.ts Outdated
@norascheuch
Copy link
Copy Markdown
Contributor Author

Tested with and without feature flag ✅

const dbManager = {
getSelectedDbItem: jest.fn(() => undefined),
} as any as DbManager;
const dbManager = setUpDbManager(undefined) as any as DbManager;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your setUpDbManager function can do the casting so you don't have to do it every time. The function should have a return type of DbManager.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@norascheuch norascheuch force-pushed the charis-nora/run-mrva-against-selected-db branch from 0ece13e to 323862a Compare December 7, 2022 11:57
@norascheuch norascheuch enabled auto-merge December 7, 2022 13:28
@norascheuch norascheuch merged commit 572ba29 into main Dec 7, 2022
@norascheuch norascheuch deleted the charis-nora/run-mrva-against-selected-db branch December 7, 2022 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants